package com.stormrage.entity.exam.rep;

import java.io.Serializable;

public class ExmStudentAnswerRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 1328912897978256266L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private String answer;
	
	private Integer correct;

	// ------------------------------- Fields -------------------------------

	public ExmStudentAnswerRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getCorrect() {
		return correct;
	}

	public void setCorrect(Integer correct) {
		this.correct = correct;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmStudentAnswerRep instance(ExmStudentAnswerRep entity, Integer seq) {
		entity.setSeq(seq);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : seq - " + seq + " id - " + id + " answer - " + answer;
	}

}
